package com.zx.idc.backend.gui.slog;

import com.zx.idc.backend.gui.common.BaseApi;
import com.zx.idc.backend.gui.common.Result;
import com.zx.idc.ds.slog.entity.SlogHotIpDomain;
import com.zx.idc.ds.slog.service.ISlogHotIpDomainService;
import com.zx.idc.ds.slog.vo.SlogHotIpDomainVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author rxliuli
 */
@RestController
@RequestMapping("/api/slogHotIpDomain")
public class SlogHotIpDomainController extends BaseApi {
    @Autowired
    private ISlogHotIpDomainService service;

    @GetMapping("/list")
    public Result<List<SlogHotIpDomainVo>> list(SlogHotIpDomain en) {
        return success(service.list(en));
    }
}
